package com.tdkj.model.risevalue;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;

/**
 * XnkyTicketcolor entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "risevalue_float_color_custom")
public class BeanFloatColorCustom extends BaseEntity implements java.io.Serializable {

	private Integer price;
	private String unit;
	private Integer timeLimitAmount;
	private String timeLimitUnit;
	
	private List<BeanFloatColorBuy> ticketcolors;
	
	public Integer getPrice() {
		return price;
	}
	public void setPrice(Integer price) {
		this.price = price;
	}
	public Integer getTimeLimitAmount() {
		return timeLimitAmount;
	}
	public void setTimeLimitAmount(Integer timeLimitAmount) {
		this.timeLimitAmount = timeLimitAmount;
	}
	public String getTimeLimitUnit() {
		return timeLimitUnit;
	}
	public void setTimeLimitUnit(String timeLimitUnit) {
		this.timeLimitUnit = timeLimitUnit;
	}
	@OneToMany(fetch=FetchType.LAZY, cascade={CascadeType.ALL}, mappedBy="custom")
	public List<BeanFloatColorBuy> getTicketcolors() {
		return ticketcolors;
	}
	public void setTicketcolors(List<BeanFloatColorBuy> ticketcolors) {
		this.ticketcolors = ticketcolors;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}

}